import { getAction, postAction,downFile, uploadAction } from '@/api/manage'

//品牌下拉
const brandList = (params) => getAction("/backend/vip/invite/brandList", params);

//活动名称下拉
const ByBrandId = (params) => getAction("/backend/invitation/getAllActivityByBrandId", params);

// 场次下拉
const getAllSchedule = (params) => getAction("/backend/invitation/getAllScheduleByActivityId", params);

// 数据看板访客
const visitsSummary = (params) => getAction("/backend/invitation/visitsSummary", params);

// 数据看板列表
const dataBoard = (params) => getAction("/backend/invitation/pageActivitySummary", params);

// 数据看板列表导出
const exportDataBoard = (params) => downFile("/backend/invitation/exportActivitySummary", params);

// 推送管理 新增/编辑
const saveOrUpdatePush = (params) => postAction("/backend/invitation/saveOrUpdatePush", params);

// 活动管理 新增/编辑
const saveOrUpdateParameter = (params) => postAction("/backend/invitation/saveOrUpdateActivity", params);

// 活动列表
const pageActivityVo = (params) => getAction("/backend/invitation/pageActivityVo", params);

//获取单个活动详情
const getActivityById = (params) => getAction("/backend/invitation/getActivityById", params);

// 预约次数
const getMaxIdNum = (params) => getAction("/backend/invitation/getMaxIdNum", params);

// 预约次数
const updateMaxIdNum = (params) => getAction("/backend/invitation/updateMaxIdNum", params);

// 推送导入
const importFile = (params) => uploadAction('/backend/invitation/uploadExcel', params)

// 短信通知
const sendSms = (params) => getAction('/backend/invitation/sendSms', params)

// 微信消息推送
const sendTemplateMsg = (params) => getAction('/backend/invitation/sendTemplateMsg', params)


export {
 brandList,
 visitsSummary,
 dataBoard,
 exportDataBoard,
 saveOrUpdatePush,
 getActivityById,
 pageActivityVo,
 saveOrUpdateParameter,
 getMaxIdNum,
 updateMaxIdNum,
 ByBrandId,
 getAllSchedule,
 importFile,
 sendSms,
 sendTemplateMsg
}




